package com.lzq.mq.broker.utils.lock;

import java.util.concurrent.locks.ReentrantLock;

public class UnfairReentrantLock implements PutMessageLock{

    private ReentrantLock lock = new ReentrantLock();
    @Override
    public void lock() {
        lock.lock();
    }

    @Override
    public void unlock() {
        lock.unlock();
    }
}
